﻿#ifndef __HAL_UART__H
#define __HAL_UART__H

#ifdef __cplusplus
 extern "C" {
#endif

#include "soc_init.h"

typedef struct{
    port_uart_type_e    logical_port;
    uint32_t            physical_port; 
    uint32_t            fifo_size;
}uart_mapping_s;

/* Mapping Table is defined in soc_init.c */
extern uart_mapping_s st_uart_mapping_table[PORT_UART_SIZE];

#ifdef __cplusplus
}
#endif

#endif /* __HAL_UART__H */

